import axios from "axios"

export const getAll = (year: number) => axios.get(
  '/api/typhoon_list/query', {
  params: {
    year
  }
})

export const getTyphoonData = (id: String) => axios.get(
  '/api/typhoon_data/query', {
  params: {
    id
  }
})